package com.indexingsystem.boss.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * idx_theme_table
 * @author 
 */
public class IdxThemeTable implements Serializable {
    /**
     * 主键
     */
    private Integer themeTableId;

    /**
     * 父id，顶层为0
     */
    private Integer parentid;

    /**
     * 所有父id，逗号分割
     */
    private String arrparentid;

    /**
     * 是否存在子类，0=不存在，1=存在
     */
    private Integer child;

    /**
     * 分类名称
     */
    private String name;

    /**
     * 0=启用，-1=不启用
     */
    private Integer status;

    /**
     * 创建时间
     */
    private String createBy;

    /**
     * 创建人
     */
    private Date createTime;

    /**
     * 描述
     */
    private Integer themeGroupId;
    
    private String themeTableCode;
    
    private Integer checkStatus;


    private static final long serialVersionUID = 1L;

    public Integer getThemeTableId() {
        return themeTableId;
    }

    public void setThemeTableId(Integer themeTableId) {
        this.themeTableId = themeTableId;
    }

    public Integer getParentid() {
        return parentid;
    }

    public void setParentid(Integer parentid) {
        this.parentid = parentid;
    }

    public String getArrparentid() {
        return arrparentid;
    }

    public void setArrparentid(String arrparentid) {
        this.arrparentid = arrparentid;
    }

    public Integer getChild() {
        return child;
    }

    public void setChild(Integer child) {
        this.child = child;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getThemeGroupId() {
        return themeGroupId;
    }

    public void setThemeGroupId(Integer themeGroupId) {
        this.themeGroupId = themeGroupId;
    }

    
    public String getThemeTableCode() {
		return themeTableCode;
	}

	public void setThemeTableCode(String themeTableCode) {
		this.themeTableCode = themeTableCode;
	}

	public Integer getCheckStatus() {
		return checkStatus;
	}

	public void setCheckStatus(Integer checkStatus) {
		this.checkStatus = checkStatus;
	}
	
	

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		IdxThemeTable other = (IdxThemeTable) obj;
		if (arrparentid == null) {
			if (other.arrparentid != null)
				return false;
		} else if (!arrparentid.equals(other.arrparentid))
			return false;
		if (checkStatus == null) {
			if (other.checkStatus != null)
				return false;
		} else if (!checkStatus.equals(other.checkStatus))
			return false;
		if (child == null) {
			if (other.child != null)
				return false;
		} else if (!child.equals(other.child))
			return false;
		if (createBy == null) {
			if (other.createBy != null)
				return false;
		} else if (!createBy.equals(other.createBy))
			return false;
		if (createTime == null) {
			if (other.createTime != null)
				return false;
		} else if (!createTime.equals(other.createTime))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (parentid == null) {
			if (other.parentid != null)
				return false;
		} else if (!parentid.equals(other.parentid))
			return false;
		if (status == null) {
			if (other.status != null)
				return false;
		} else if (!status.equals(other.status))
			return false;
		if (themeGroupId == null) {
			if (other.themeGroupId != null)
				return false;
		} else if (!themeGroupId.equals(other.themeGroupId))
			return false;
		if (themeTableCode == null) {
			if (other.themeTableCode != null)
				return false;
		} else if (!themeTableCode.equals(other.themeTableCode))
			return false;
		if (themeTableId == null) {
			if (other.themeTableId != null)
				return false;
		} else if (!themeTableId.equals(other.themeTableId))
			return false;
		return true;
	}

    @Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((arrparentid == null) ? 0 : arrparentid.hashCode());
		result = prime * result + ((checkStatus == null) ? 0 : checkStatus.hashCode());
		result = prime * result + ((child == null) ? 0 : child.hashCode());
		result = prime * result + ((createBy == null) ? 0 : createBy.hashCode());
		result = prime * result + ((createTime == null) ? 0 : createTime.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result + ((parentid == null) ? 0 : parentid.hashCode());
		result = prime * result + ((status == null) ? 0 : status.hashCode());
		result = prime * result + ((themeGroupId == null) ? 0 : themeGroupId.hashCode());
		result = prime * result + ((themeTableCode == null) ? 0 : themeTableCode.hashCode());
		result = prime * result + ((themeTableId == null) ? 0 : themeTableId.hashCode());
		return result;
	}

    @Override
	public String toString() {
		return "IdxThemeTable [themeTableId=" + themeTableId + ", parentid=" + parentid + ", arrparentid=" + arrparentid
				+ ", child=" + child + ", name=" + name + ", status=" + status + ", createBy=" + createBy
				+ ", createTime=" + createTime + ", themeGroupId=" + themeGroupId + ", themeTableCode=" + themeTableCode
				+ ", checkStatus=" + checkStatus + "]";
	}
}